<%@page contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html style="height: 100%">
<head>
<meta charset="utf-8">
		<link rel="stylesheet"  href="${basePath}css/styles.css"/>
		<link rel="stylesheet"  href="${basePath}css/font-awesome-4.7.0/css/font-awesome.min.css"/>
		<script  src="${basePath}js/jquery.min.js" type="text/javascript"></script>
		<script  src="${basePath}js/jquery-3.6.0.js" type="text/javascript"></script>
		<script  src="${basePath}js/jquery-validation-1.14.0/localization/messages_zh.js" type="text/javascript"></script>
</head>
<body style="height: 100%; margin: 0">
<div class="add">
	<table class="tablelist" style="width: 50%;margin-left:50px">
		<c:if test="${type == 1}">
			<tr>
				<td width="60px">ID</td>
				<td>${user.id}</td>
			</tr>
			<tr>
				<td width="60px">账号</td>
				<td>${user.gid}</td>
			</tr>
			<tr>
				<td width="60px">姓名</td>
				<td width="60px">${user.name}</td>
			</tr>
			<tr>
				<td width="60px">手机号</td>
				<td width="60px">${user.num}</td>
			</tr>
		</c:if>
		<c:if test="${type == 0}">
			<tr>
				<td >ID</td>
				<td >${user.id}</td>
			</tr>
			<tr>
				<td >工号</td>
				<td >${user.cid}</td>
			</tr>
			<tr>
				<td >姓名</td>
				<td >${user.name}</td>
			</tr>
			<tr>
				<td >手机号</td>
				<td >${user.num}</td>
			</tr>
			<tr>
				<td >归属</td>
				<td >${user.guishu}</td>
			</tr>
		</c:if>
		
	</table>
	<br>
	<c:if test="${type == 0}">
	<button class="wbwbtn" type="button" onclick="window.location.href='${basePath}caozuoyuan?method=gengxing&id=${user.id}'"
style="margin-left: 50px;padding: 5px">
				<i class="fa fa-edit"></i>
				修改
	</button>
	<button class="wbwbtn" type="button" onclick="window.location.href='${basePath}main.jsp'"
	style="padding: 5px">
				<i class="fa fa-home"></i>
				主页
	</button>
</c:if>
	<c:if test="${type == 1}">
	<button class="wbwbtn" type="button" onclick="window.location.href='${basePath}caozuoyuan?method=gengxing&id=${user.id}'"
style="margin-left: 50px;padding: 5px">
				<i class="fa fa-edit"></i>
				修改
	</button>
	<button class="wbwbtn" type="button" onclick="window.location.href='${basePath}main.jsp'"
	style="padding: 5px">
				<i class="fa fa-home"></i>
				主页
	</button></c:if>
	</div>
</body>
<script type="text/javascript">

</script>
</html>